<template>
  <div class="box">
    <div>详情数据的id：{{ id }}</div>
    <div v-for="(item) in 20" :key="item" style="height: 100px">任务： {{ item }}</div>
    <div class="text-center">
      <el-button @click="goBack">返回</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TableDetail',
  data() {
    return {
      id: ''
    }
  },
  created() {
    this.id = this.$route.query.id
  },
  methods: {
    // 返回上一页
    goBack() {
      this.$router.back()
    }
  }
}
</script>

<style scoped>

</style>
